<template>
  <div>
    <!-- <el-button @click="add(5,10086)">+</el-button>
    <span>{{ count }}</span>
    <el-button @click="$store.state.count--">-</el-button>
    <div>{{ computedCount }}</div>
    <UploadComponent></UploadComponent> -->
    暂未开发，请回到上级页面
  </div>
</template>

<script>
import {mapState} from 'vuex'
// import UploadComponent from '@/components/UploadComponent.vue'
export default {
computed:{
  ...mapState(['count']),
  computedCount(){
    return this.count>5?'大于5':'小于5'
  }
},
methods:{
  add(n,a){
    function addCount(state, n,a){
      state.count+=n
      console.log(a)  
    }
    setTimeout(() => {
      this.$store.commit('func',{func:addCount,params:[n,a]})
      
    }, 1000);
  }
},
components:{
  // UploadComponent
}

}
</script>

<style>

</style>